﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using XXX.Bo;
using XXX.Models.XXXEntities;

// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace XXX.api.Controllers
{
    /// <summary>
    /// 业务协同
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    //[Authorize]
    public class xietongController : ControllerBase
    {
        //private readonly IKuCunReqRepository _invRepository;
        private readonly ILogger<xietongController> _logger;
        public xietongController(ILogger<xietongController> logger)
        {
            //_invRepository = xxxRepository;
            _logger = logger;
        }

        [HttpPost]
        public Models.RetModelbool Post([FromBody] Models.XXXEntities.U8XieTong model)
        {
            Models.RetModelbool ret = DBService.xietong(model.clx, model.id);
             
            //Models.RetModel ret = DBService.GetMaterialOutRed();
            return ret;
            //return ReturnStd.Success(jsonstr);
        }

    }
}
